package FifthQuestion;

import java.util.ArrayList;
import java.util.List;

/**
 * @author cyt
 * @date 2020/6/14
 */
public class Player {
    //玩家姓名
    private String name;

    //玩家的手牌
    private List<Card> cardList;

    public Player(String name) {
        this.name = name;
        cardList = new ArrayList<>();
    }

    public List<Card> getCardList() {
        return cardList;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void addCard(Card card){
        cardList.add(card);
    }


}
